package com.pomr.service.synthesize;

import java.util.List;

import com.pomr.model.synthesize.Equipment;
import com.pomr.util.page.Page;

public interface EquipmentService {
	/**
	 * 保存设备基本信息
	 * @param equipment
	 * @return
	 * @throws Exception
	 */
	public boolean saveEquipment(Equipment equipment) throws Exception;
	
	/**
	 * 通过设备名称、状态查询设备
	 * @param name
	 * @param status
	 * @param page
	 * @param limit
	 * @return
	 * @throws Exception
	 */
	public Page<List<Equipment>> searchEquipmentsByCondition(String name,String page,String limit)throws Exception;
	
	/**
	 * 通过id批量删除设备基本信息
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public boolean deleteEquipmentsByIds(String[] ids) throws Exception;
	
	/**
	 * 通过id获取设备信息
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Equipment searchEquipmentById(String id) throws Exception;
	
	/**
	 * 通过id更新设备状态以及备注
	 * @param equipment
	 * @return
	 * @throws Exception
	 */
	public boolean editEquipmentById(Equipment equipment) throws Exception;
	
	/**
	 * 获取所有可用的设备
	 * @return
	 * @throws Exception
	 */
	public List<Equipment> searchAllEquipment() throws Exception;

}
